package cn.funeralobjects.asms.service;

import cn.funeralobjects.asms.entity.ESmsSign;
import cn.funeralobjects.asms.model.SmsSign;
import cn.funeralobjects.common.service.*;

/**
 * Service of SmsSign
 *
 * @author FuneralObjects
 * Create date: 2020/5/31 9:30 PM
 */
public interface SmsSignService extends CommonModifyService<SmsSign, ESmsSign, Integer>, EntityService<ESmsSign, Integer>, NameService<ESmsSign, Integer>, IdService<Integer>, CodeService<ESmsSign, Integer> {
    String ENTITY_NAME = "SmsSign";

    /**
     * 判断是否存在实体
     *
     * @param signName    签名名称
     * @param prodResCode 产品资源编号
     * @return true - 存在
     */
    boolean existsBySignNameInProductRes(String signName, String prodResCode);

    /**
     * 判断是否存在实体
     *
     * @param signName    签名名称
     * @param prodResCode 产品资源编号
     * @param withoutId   排除Id
     * @return true - 存在
     */
    boolean existsBySignNameInProductRes(String signName, String prodResCode, Integer withoutId);
}
